package tezhongbing;

public class BinaryConversion {
	public static void main(String[] args) {
		System.out.println(Integer.toBinaryString(8));
		System.out.println(Integer.toBinaryString(15));
		System.out.println(Integer.toBinaryString(78));
		System.out.println("-----------------------");
		System.out.println(Integer.toHexString(8));
		System.out.println(Integer.toHexString(15));
		System.out.println(Integer.toHexString(78));
		System.out.println("-----------------------");
		System.out.println(Integer.parseInt("0101", 2));
	}
}
